package com.xyd.service;

import com.xyd.dao.UserDao;
import com.xyd.entity.User;
import com.xyd.util.SqlSessionFactoryUtil;

public class UserService {

    UserDao userDao = SqlSessionFactoryUtil.getSqlSession().getMapper(UserDao.class);


    public User login(User user) {
        return userDao.login(user);
    }

}
